<template>
  <div style="width:100%">
    <div class="account_info">
      <div style="display:flex;align-items:center;">
        <div style="margin-right:30px">
          <i class="el-icon-user" style="color:#62a8ea;font-size:30px"></i>
        </div>
        <div>
          <div style="font-size:18px;color:#444;text-align:left">账号密码</div>
          <div style="font-size:14px;color:#ccc;text-align:left;margin-top:7px">用于保护账号信息和登录安全</div>
        </div>
      </div>
      <div>
        <el-button size="small" @click="dialogFormVisible = true" type="primary">修改</el-button>
      </div>
    </div>

    <el-dialog title="密码修改" :visible.sync="dialogFormVisible" width="25%">
      <el-form :model="form">
        
        <el-form-item>
          <el-input placeholder="密码" v-model="input1">
            <template slot="prepend"> <i class="el-icon-s-promotion"></i></template>
          </el-input>
        </el-form-item>
        <el-form-item>
          <el-input placeholder="新密码" v-model="input1">
            <template slot="prepend"> <i class="el-icon-s-promotion"></i></template>
          </el-input>
        </el-form-item>
         <el-form-item>
          <el-input placeholder="重复密码" v-model="input1">
            <template slot="prepend">
              <i class="el-icon-s-promotion"></i>
            </template>
          </el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" >
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      gridData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        }
      ],
      dialogTableVisible: false,
      dialogFormVisible: false,
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: ""
      },
      formLabelWidth: "120px"
    };
  }
};
</script>
<style>
.account_info {
  width: 100%;
  border-bottom: 1px solid #eee;
  padding: 20px 10px;
  display: flex;
  justify-content: space-between;
}
.el-dialog__header {
  background: rgb(98, 168, 234);
}
.el-dialog {
  border-radius: 8px !important;
  overflow: hidden;
}
.el-dialog__title {
  color: #fff;
}
</style>